package com.example.repoprovider.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.repoprovider.mapper.RepoMapper;
import com.example.repoprovider.model.Repo;
import com.example.repoprovider.service.IRepoService;
import org.springframework.stereotype.Service;

/**
 * @author Kong
 * @date 2021-8-19 16:59
 */
@Service
public class RepoServiceImpl extends ServiceImpl<RepoMapper, Repo> implements IRepoService {
    @Override
    public boolean saveOrUpdate(Repo entity) {
        return super.saveOrUpdate(entity);
    }

    @Override
    public int decreaseRepo(String productCode, Integer count) {
        return baseMapper.decreaseRepo(productCode,count);
    }
}
